<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>授权/授权转移</title>
		<meta http-equiv="X-UA-Compatible" content='IE=edge' />
		<%@ include file="/inc/info.inc" %>
	    <link rel="stylesheet" href="/fw/pages/agent/css/agentAdd.css" media="screen">
		<script type="text/javascript" src="js/deviceAuz.js"></script>
		<style type="text/css">
		.control-label {
			padding-top: 0;
		}
        .col-sm-4 {
			width: 20.333%;
		}
		</style>
	</head>
	<body>
		<div id="agentList" class="hd_page">
			<div><%@ include file="../manage/heading.jsp"%></div>
			<div><%@ include file="../manage/hd_menu.jsp"%></div>
			<div class="content">
				<div id='grid'></div>
				<nav id='navbar' class="navbar navbar-default" role="navigation">
					<div class="top_item_search">
						<form class="form-horizontal">
							<div> <h4>新设备授权:</h4></div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">设备型号：</label>
								<div class="col-sm-4">
									<select id="deviceModel" class="form-control">
										<option value="fwrouter">fwrouter</option>   
									</select>
		 						</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">设备SN：</label>
								<div class="col-sm-4">
								     <input id="deviceSn" class="form-control" placeHolder="输入设备SN"/>
		 						</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">确认设备SN：</label>
								<div class="col-sm-4">
								     <input id="deviceSn2" class="form-control" placeHolder="再次输入设备SN"/>
		 						</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">授权时间：</label>
								<div class="col-sm-4">
									<select id="auzTime" class="form-control">
										<option value="1">一个月</option>
										<option value="3">三个月</option>
										<option value="6">半年</option>
										<option value="12">一年</option>
										<option value="24">两年</option>
										<option value="36">三年</option>
										<option value="99">永久</option>
									</select>
		 						</div>
								<div class="col-sm-4">
									<select id="auzTime2" class="form-control">
										<option value="1">一个月</option>
										<option value="3">三个月</option>
										<option value="6">半年</option>
										<option value="12">一年</option>
										<option value="24">两年</option>
										<option value="36">三年</option>
										<option value="99">永久</option>
									</select>
		 						</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">赠送时间：</label>
								<div class="col-sm-4">
								     <input id="giveTime" class="form-control" placeHolder="0-30"/>
		 						</div>
		 						<div class="col-sm-4" style="padding-top: 7px;">天</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right"></label>
								<div class="col-sm-4">
									<button type="button" onclick="sure_add()" class="btn btn-success" >授权</button>
		 						</div>
							</div>
							<div> <h4>授权转移:</h4></div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">设备SN：</label>
								<div class="col-sm-4">
								     <input id="deviceSnChange" class="form-control" placeHolder="输入设备SN"/>
		 						</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">另一设备SN：</label>
								<div class="col-sm-4">
								     <input id="deviceSnChange2" class="form-control" placeHolder="输入另一设备SN"/>
		 						</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right"></label>
								<div class="col-sm-4">
									<button type="button" onclick="sure_change()" class="btn btn-success" >转移</button>
		 						</div>
							</div>
							<div> <h4>授权更改:</h4></div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">输入需要更改的设备SN：</label>
								<div class="col-sm-4">
								     <input id="deviceSnEdit" class="form-control" placeHolder="输入设备SN"/>
		 						</div>
		 						<div class="col-sm-4">
		 							<button type="button" onclick="sure_find()" class="btn btn-success" >查询</button>
		 						</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label no-padding-right">目前到期时间：</label>
								<div class="col-sm-4">
								     <input id="expireTime" class="form-control" placeHolder="目前到期时间" onClick="WdatePicker({dateFmt:'yyyy-MM-dd 12:00:00'})"/>
		 						</div>
								<div class="col-sm-4">
									<button type="button" onclick="sure_edit()" class="btn btn-success" >更改</button>
		 						</div>
							</div>
					 	</form>
						<div style="clear: both;"></div>
					</div>
				</nav>
			</div>
		</div>
	</body>
</html>